﻿namespace CTP.CRM.Repository.Employee.Entitys
{

    /// <summary>
    /// 岗位人员表
    /// </summary>
    [SugarTable("t_position_employee")]
    public class EmployeePositionEntity : IFullAuditedBasicEntitys
    {
        ///<summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        ///<summary>
        /// 员工Id
        ///</summary>
        [SugarColumn(ColumnName = "EmpId")]
        public int EmployeeId { get; set; }

        ///<summary>
        /// 员工最近一级公司Id
        ///</summary>
        [SugarColumn(ColumnName = "CompanyId")]
        public int CompanyId { get; set; }

        ///<summary>
        ///部门Id
        ///</summary>
        [SugarColumn(ColumnName = "DeptId")]
        public int? DeptId { get; set; }

        ///<summary>
        /// 组织Id
        ///</summary>
        [SugarColumn(ColumnName = "OrgId")]
        public int OrgId { get; set; }

        ///<summary>
        /// 岗位Id
        ///</summary>
        [SugarColumn(ColumnName = "PositionId")]
        public int PositionId { get; set; }

        ///<summary>
        /// 岗位身份
        ///</summary>
        [SugarColumn(ColumnName = "IdentityId")]
        public int? IdentityId { get; set; }

        ///<summary>
        /// 入职时间
        ///</summary>
        [SugarColumn(ColumnName = "WorkingTime")]
        public DateTime? WorkingTime { get; set; }

        ///<summary>
        /// 是否是主岗位
        ///</summary>
        [SugarColumn(ColumnName = "IsMasterPosition")]
        public bool IsMasterPosition { get; set; }
    }
}